package org.iabako.shared.iservice.support;

import com.google.gwt.core.client.GWT;
import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * Created by jose on 02/12/14.
 */
public interface SupportActionServiceAsync {

    void askQuestion(String value, String value1, AsyncCallback<Void> async);

    void reportBug(String from, String body, AsyncCallback<Void> async);

    void requestDeleteInformation(String from, String body, AsyncCallback<Void> async);

    void logException(String exception, AsyncCallback<Void> async);

    public static final class Util {
        private static SupportActionServiceAsync instance;

        public static final SupportActionServiceAsync getInstance() {
            if (instance == null) {
                instance = GWT.create(SupportActionService.class);
            }
            return instance;
        }
    }
}
